package com.example.dao;

import com.example.entity.DishFlavorsEntity;
import com.example.mybatis.dao.BaseDao;
import com.example.entity.FlavorsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 口味表
*
* @author yyyyjinying 1020066395@qq.com
* @since 1.0-SNAPSHOT 2025-04-29
*/
@Mapper
public interface FlavorsDao extends BaseDao<FlavorsEntity> {

    void deleteDishFlavoersRelation(@Param("dishIds") List<Long> dishIds, @Param("flavorIds") List<Long> flavorIds);

    void batchInsertDishFlavorsRelation(@Param("lists") List<DishFlavorsEntity> lists);
    List<DishFlavorsEntity> flavorsByDishId(@Param("dishId") Long dishId, @Param("flavorIds") List<Long> flavorIds);
}